WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
wolf::HardwareBase Class Reference

Hardware: the sensors of the problem. More...

#include <core/hardware/hardware_base.h>

Inheritance diagram for wolf::HardwareBase:
[legend]

Public Member Functions

 HardwareBase ()
 Constructor. More...
 
 ~HardwareBase () override
 
bool hasChildren () const override
 Returns whether the node has children in the Wolf tree. More...
 
SensorBaseConstPtrList getSensorList () const
 Returns the installed sensors. More...
 
SensorBasePtrList getSensorList ()
 Returns the installed sensors. More...
 
SensorBaseConstPtr getSensor (const std::string &_sensor_name) const
 Returns a sensor by its name (nullptr if not found) More...
 
SensorBasePtr getSensor (const std::string &_sensor_name)
 Returns a sensor by its name (nullptr if not found) More...
 
virtual void printHeader (int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream, std::string _tabs="") const
 Prints the information of this node (not of its children) More...
 
void print (int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream=std::cout, std::string _tabs="") const
 Prints this node and, depending on the depth, its children. More...
 
virtual CheckLog localCheck (bool _verbose, std::ostream &_stream, std::string _tabs="") const
 Checks the consistency of this node (not of its children) More...
 
bool check (CheckLog &_log, bool _verbose, std::ostream &_stream, std::string _tabs="") const
 Checks the consistency of this node and its children, composing the log. More...
 
- Public Member Functions inherited from wolf::NodeBase
 NodeBase (const std::string &_category, const std::string &_type="Undefined", const std::string &_name="")
 Constructor. More...
 
virtual ~NodeBase ()=default
 Destructor. More...
 
unsigned int nodeId () const
 Returns the node id, unique over the whole Wolf tree. More...
 
std::string getCategory () const
 Returns the category of the node. More...
 
std::string getType () const
 Returns the type (subcategory) of the node. More...
 
std::string getName () const
 Returns the name of the node. More...
 
bool isRemoving () const
 Returns whether the node is being removed. More...
 
virtual bool hasChildren () const =0
 Returns whether the node has children in the Wolf tree. More...
 
void setType (const std::string &_type)
 Sets the type (subcategory) of the node. More...
 
void setName (const std::string &_name)
 Sets the name of the node. More...
 
ProblemConstPtr getProblem () const
 Returns the problem the node belongs to. More...
 
ProblemPtr getProblem ()
 Returns the problem the node belongs to. More...
 

Additional Inherited Members

- Protected Member Functions inherited from wolf::NodeBase
virtual void setProblem (ProblemPtr _prob_ptr)
 Sets the problem the node belongs to. More...
 
- Protected Attributes inherited from wolf::NodeBase
ProblemWPtr problem_ptr_
 Problem the node belongs to. More...
 
unsigned int node_id_
 Node id. It is unique over the whole Wolf Tree. More...
 
std::string node_category_
 Text label identifying the category of node ("SENSOR", "FEATURE", etc) More...
 
std::string node_type_
 Type or subcategory of node (derived class name: "SensorOdom2d", etc) More...
 
std::string node_name_
 
bool is_removing_
 A flag for safely removing nodes from the Wolf tree. See remove(). More...
 

Detailed Description

Hardware: the sensors of the problem.

Constructor & Destructor Documentation

◆ HardwareBase()

wolf::HardwareBase::HardwareBase ( )

Constructor.

◆ ~HardwareBase()

wolf::HardwareBase::~HardwareBase ( )
override

Member Function Documentation

◆ check()

bool wolf::HardwareBase::check ( CheckLog &  _log,
bool  _verbose,
std::ostream &  _stream,
std::string  _tabs = "" 
) const

Checks the consistency of this node and its children, composing the log.

◆ getSensor() [1/2]

SensorBasePtr wolf::HardwareBase::getSensor ( const std::string &  _sensor_name)

Returns a sensor by its name (nullptr if not found)

◆ getSensor() [2/2]

SensorBaseConstPtr wolf::HardwareBase::getSensor ( const std::string &  _sensor_name) const

Returns a sensor by its name (nullptr if not found)

Parameters
_sensor_nameThe sensor name, as it was installed with Problem::installSensor()

◆ getSensorList() [1/2]

SensorBasePtrList wolf::HardwareBase::getSensorList ( )
inline

Returns the installed sensors.

◆ getSensorList() [2/2]

SensorBaseConstPtrList wolf::HardwareBase::getSensorList ( ) const
inline

Returns the installed sensors.

◆ hasChildren()

bool wolf::HardwareBase::hasChildren ( ) const
inlineoverridevirtual

Returns whether the node has children in the Wolf tree.

Implements wolf::NodeBase.

◆ localCheck()

CheckLog wolf::HardwareBase::localCheck ( bool  _verbose,
std::ostream &  _stream,
std::string  _tabs = "" 
) const
virtual

Checks the consistency of this node (not of its children)

◆ print()

void wolf::HardwareBase::print ( int  depth,
bool  factored_by,
bool  metric,
bool  state_blocks,
std::ostream &  stream = std::cout,
std::string  _tabs = "" 
) const

Prints this node and, depending on the depth, its children.

◆ printHeader()

void wolf::HardwareBase::printHeader ( int  depth,
bool  factored_by,
bool  metric,
bool  state_blocks,
std::ostream &  stream,
std::string  _tabs = "" 
) const
virtual

Prints the information of this node (not of its children)


The documentation for this class was generated from the following files: